package cn.netjava.chapter7;

import java.io.*;

public class BufferedReaderTest {

	public void inputAndOutput()throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		
		StringBuilder sb = new StringBuilder();
		
		String s = null;
		
		while((s=br.readLine())!=null)
		{
			sb.append(s);
		}
		System.out.println(sb);
	}
	
	
		static public void main(String[] args)throws IOException{
			BufferedReaderTest brt = new BufferedReaderTest();
			
			brt.inputAndOutput();
		}
}
